package com.chuanyang.driverh.utils.camera;

import android.app.Activity;
import android.view.View;

import com.chuanyang.driverh.utils.LogUtils;


/**
 * @author Kyle
 * @date 2015/6/21 19:20
 */
public class SelectPictureListener implements View.OnClickListener {
	private Activity context;

	public SelectPictureListener(Activity context) {
		this.context = context;
	}

	@Override
	public void onClick(View v) {
		try {
			context.startActivityForResult(CameraUtils.selectPicture(context), CameraUtils.REQUEST_CODE_SELECT_PICTURE);
		} catch (Exception e) {
			LogUtils.d(e.getMessage());
		}
	}
}